<template>
	<div id="shareWrap">
		<wx-open-launch-app id="launch-btn" appid="wx11ec4d7e00ca5187"  :extinfo="extinfo"
			@launch="handleAppLaunch" @error="handleError">
			<script type="text/wxtag-template">
				<style scoped>.finalbtn {background:#fff;width:100%;display: block;height: 100%;font-size:16px;padding:0;margin:0;border:none;text-align:center;position: absolute;top:0}</style>
					        <button open-type="launchApp" class="finalbtn">App内查看</button>
			</script>
		</wx-open-launch-app>
	</div>
</template>
<script>
	import API from '@/config/newApi.js'
	export default {
		props: {
			getSignature: {
				type: Object,
				default: null
			}
		},
		created() {
			console.log("wx-open-launch-app，？？？？？？？？")
		},
		onShow() {

		},
		data() {
			return {
				extinfo: '',
				launchApp: false
			};
		},
		onLoad() {


		},
		methods: {
			handleAppLaunch(e) {
				
				console.log(e, 'APP已成功打开!!!!')
			},
			handleError(e) {
				console.log(e, '打开App失败!!!!!!!!')
			},
		}
	}
</script>

<style>
	#launch-btn {
		position: absolute;
		top: 0;
		height: 86rpx;
		left: 0;
		width: 100%;
		opacity: 0;
		z-index: 99;
	}
</style>